package cool.webstudy.admin.configuration.security;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
/**
 *
 * @author think
 * @date 2024/7/14 23:47
 * @description: 密码加密器配置类
 */
@Configuration
public class PasswordEncoderConfig {
    /**
     * @return PasswordEncoder
     * @description: 用户密码加密器
     */
    @Bean
    public PasswordEncoder passwordEncoder(){
        return new BCryptPasswordEncoder();
    }
}
